//
//  NewsFeedViewController.h
//  Mecca
//
//  Created by Ryan Enguero on 6/3/14.
//  Copyright (c) 2014 TapDash Heuristics. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol newsFeedDelegate <NSObject>

- (void)getData:(NSArray*)details;

@end


@interface NewsFeedViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate, UISearchDisplayDelegate>


@property (nonatomic, assign)id<newsFeedDelegate>delegate;


@property (strong, nonatomic) NSMutableData *receivedData;
@property (strong, nonatomic) NSURLConnection *theConnection;

@property (strong, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *activityLoader;
@property (strong, nonatomic) IBOutlet UIImageView *banner;
@property (strong, nonatomic) IBOutlet UISearchBar *search;

@property (strong, nonatomic) IBOutlet UIButton *btnMenu;

@property (strong, nonatomic) IBOutlet UIScrollView *scroller;

@property (retain, nonatomic) UIRefreshControl *refreshControll;


- (IBAction)userProfileAction:(id)sender;

- (IBAction)btnHome:(id)sender;

- (IBAction)btnTest:(id)sender;


@end
